package Structural_design_pattern.Adapter_Pattern.Object_Adapter;

public class Client {
    public static void main(String[] args) {
        DataOperator dao = (DataOperator) XMLUtil.getBean();
        dao.setPassword("sunnyLiu");
        String ps = dao.getPassword();
        String password = dao.doEncrypt(6,ps);
        System.out.println("明文为："+ps);
        System.out.println("密文为："+password);
    }
}
